The online racing simulator
Searching in All forums
(374 results)
Tim NL
S2 licensed
Hi,

A little question about "AND ( && )" and "OR ( || )".

I'm trying to make something like,
IF $Username equals $player1 OR $Username equals $player2 OR $Username equals $player3 THEN do_something ELSE do_nothing.

I wrote this but it will not work.

IF( $player1 || $player2 || $player3 == $Username )
THEN
do_something();
ENDIF

I also try this one but it will not work to.

IF( $Username == $player1 || $player2 || $player3 )
THEN
do_something();
ENDIF

I get no error's in lapper, it look's like it's ignored in the script
What do i wrong?

When i use this in lapper it work's but with OR || my script will be a bit shorter

IF( $Username == $player1)
THEN
do_something();
ELSE
IF( $Username == $player2)
THEN
do_something();
ELSE
IF( $Username == $player3)
THEN
do_something();
ENDIF
ENDIF
ENDIF

Thanks in advance
Tim NL
S2 licensed
Quote from rockclan :Dear Devs,

I just have a very cool improvement suggestion, which doesn't seem hard to implent.
The fact that we can colour our names in LFS is superb, we have all the cool basic colours!
Except for one, which I think many would like to have:

Orange

So if you could implent it into the game, I think it would be very cool


What does the rest of the community think?!

I really like if there came a color Orange
+1
Tim NL
S2 licensed
I have a question.
My script in Lapper is a little bit big now but at the moment i get a number (43) in my lapper screen when lapper startup.
Everything work's fine but i was wondering what the number mean's.
Is there a limit of the number of line's or the number's of button's in use??

Kind regards,
Tim NL
S2 licensed
Quote from Gai-Luron :

This utility don't work on vista or XP 64. You must recompile it prior to use it with this systems

Gai-Luron

I run Vista and have no problem's to use the utility.
Do you need framework .net to run this util?
Tim NL
S2 licensed
Quote from superstix :The link given doesn't work for me, I have quickly scanned all the posts for the same problem so if i have missed someone else saying this im sorry.

Is it still available??

EDIT: i also just realised i was only reading the first page....so don't shout.

You can do the same with LFSLapper now. (and more)
http://www.lfsforum.net/showthread.php?t=25756
Tim NL
S2 licensed
Quote from Nilex :Hi again,
Thanks for trying to help me out Tim, and for confirming that premium thingy is not needed
I've tried all that kids stuff . Thing is - it don't work!

Have you tried it on your side, with your Idk?
Just to confirm it really works, and that the problem is on my side
Thanks

Hi,
It works ok here with my Idk
Did you tried my ConvWr.bat?
You have to run the ConvWr.bat file not the .exe


@echo off
rem ConvWr.exe -l licenseName -p pass -c coef -o outputFile
rem Or
rem ConvWr.exe -t idk -c coef -o outputFile
rem
rem coef = multiple coef possibility separated by ':'
rem ex : 100.5
rem : 100.5:101:101.5
rem licenseName = Your license Name
rem pass = Your pass of license Name
rem idk = it's your idk. you can obtain it on lfsworld 'My LFSW Setting'
rem
rem it's more safe to use idk instead of login/pass

rem ConvWr.exe -l yourLogin -p yourPass -o trackInfo.cfg -c 100.5:102 -mlc 200

ConvWr.exe -i [COLOR=red]Put_your_Ident-Key_here[/COLOR] -o trackInfo.cfg -c 100.5:102 -mlc 200
pause

Tim NL
S2 licensed
Quote from Nilex :Yes Tim, I did that before I made my 1st post here = no results.
The Pubstat system is accessable in two variants:
- Free, but tarpitted (only one request per 5 seconds allowed), <-- [B]That's mine[/B]
- Premium, the tarpit is removed - unrestricted access for a fee based on usage.

Does it require premium PUBSTAT? Could anyone confirm this? Maybe application is outdated (June 2007 in Readme.txt)?

Thanks!

Hi,
Just on lfsworld.net - My LFSW settings - tab Pubstat access
And click at the bottom
To generate an additional Ident-Key, click :

ConvWr.bat

@echo off
rem ConvWr.exe -l licenseName -p pass -c coef -o outputFile
rem Or
rem ConvWr.exe -t idk -c coef -o outputFile
rem
rem coef = multiple coef possibility separated by ':'
rem ex : 100.5
rem : 100.5:101:101.5
rem licenseName = Your license Name
rem pass = Your pass of license Name
rem idk = it's your idk. you can obtain it on lfsworld 'My LFSW Setting'
rem
rem it's more safe to use idk instead of login/pass

rem ConvWr.exe -l yourLogin -p yourPass -o trackInfo.cfg -c 100.5:102 -mlc 200

ConvWr.exe -i [COLOR=red]Put_your_Ident-Key_here[/COLOR] -o trackInfo.cfg -c 100.5:102 -mlc 200
pause

It does not require premium PUBSTAT.
Tim NL
S2 licensed
Quote from Nilex :Hi,

I've been trying to get this nice application (bottom of Post 1) to work but I always get this error (attachment). There is no sign of trackInfo.cfg.
I've followed readme.txt instructions: placed my own Idk, etc... Internet connection was on, firewall wasn't blocking. NET 2.0; 3.0; 3.5 installed.

The default coefs are no good for me so I wanted to make my own.
For this case, I left DEFAULT settings (to make it easily reproducible), only placed Idk in correct place.

So, what is the problem? Does it require premium PUBSTAT?

Hi Nilex,

Yes, You need to use your pubstat.

example:

ConvWr.exe -i Thisafakeone_use your pubstat here -o trackInfo.cfg -c 100.5:102 -mlc 200
Tim NL
S2 licensed
Hi,

@yisc Is there in the new version of lapper also a var for that show's the positie in the race?

IF $racepos == 1 AND $lapsdone == 4 THEN Open the PITWindow.

So the pitwindow will be open en closed based on the positie of the nr.1 in the race.

Your new pitboard look's very nice and i love the pitwindow's
Tim NL
S2 licensed
Quote from Aid :im trying to get $Dist and $SessDist to work. any thoughts? is it working at all in this version? how does it store distance and where it taken from?

Hi,

$Dist -> Distance done on current combo/track by player
$SessDist -> Distance done on current combo/track by player this session

If you not in a car and you use more then 1 type of car or track's, Lapper don't know with car/track combo to display.

If $DefaultTopCar = "FBM"; and use 1 track it will work.

Type !mystats on one of my server's [NLR]Racing #2 or #3 (DEMO FBM @ BL1 ) it will work alway's ( in or out a car).
Type !mystats on [NLR]Racing #4 (DEMO XFR+XRG @ BL1)it will work's only in a car.
Tim NL
S2 licensed
Quote from Easy_Mike :And reading thru my first post i see the problem.
pls forgive me for being ...eh...non english? haha.
i messed up some basic writing

sry again

i want res: 20% everything else gets spectated (as an example)
meaning 0-19%= spectate
meaning 21-50%= spectate

Hi,
If you setup the handicaps , everyone with to low handicaps ( see the name of the event OnToLowHandicap )
will be spectated.
Everone with to high handicap is here allowed.
The only way to do that is to use the Authorization Options.
(i didn't test the code ,still working now)

Or wait for the new release and use the solution of Yisc


###########
#Handicaps#
###########

$HandicapCars = "[COLOR=red]car:mass:irest,car:mass:irest,...,car:mass:irest[/COLOR]";

Event OnToLowHandicap()
cmdLFS("/spec " . $Nickname );
cmdLFS("/msg " . $Nickname . "^3 spectated for to low handicap" );
cmdLFS("/msg ^3need " . $H_Mass . "kg and " . $H_TRes . "% of intake restriction!");
EndEvent

######################
#Authorization Options
######################

#$Auth1 = "XFG:BL1:1.30.10 | XRT:SO4:1.20.20";
#$Auth2 = "XFG:BL1:1.10.10 | XRT:SO4:1.20.20";
#$Auth3 = "XFG:BL1:1.05.10";
$AuthAllowPlayer = [COLOR=red]"@your_username";[/COLOR]
$AuthMinPlayer = 0; # Minimum number of players on the server to auto enable authorization
# If number of players is below value, alle players are allowed
# If number of players is above value, only AuthAllowPlayer are allowed

Event OnAuthAllowed()
Endevent

Event OnAuthNotAllowed()
IF( $P_Mass != $H_Mass )
THEN
cmdLFS("/spec " . $Nickname );
cmdLFS("/msg " . $Nickname . "^3 spectated for to high handicap" );
cmdLFS("/msg ^3need " . $H_Mass . "kg and " . $H_TRes . "% of intake restriction!");
ENDIF
IF( $P_TRes != $H_TRes )
THEN
cmdLFS("/spec " . $Nickname );
cmdLFS("/msg " . $Nickname . "^3 spectated for to high handicap" );
cmdLFS("/msg ^3need " . $H_Mass . "kg and " . $H_TRes . "% of intake restriction!");
ENDIF
Endevent

Tim NL
S2 licensed
Quote from Eneko :Hello everybody!

My question is: Is it possible that servers can disable specific driver aids, like Brake Help? And if so, is there a way for me to see what is allowed on the server and what not, before actualy entering the race? I've done searches and read the manuals but haven't found much about the topic. I've seen it has been requested but I don't know if it's actualy possible at the moment.

Thanks!!

Hi Eneko,

You can use LFSLapper to disable specific driver aids like Brake help on your server's.
http://www.lfsforum.net/showthread.php?t=25756


#################
#Control Allowed#
#################
# Racer flags
# "Y" = Yes
# "N" = No
# "*"" = Yes or No
# Local variable
# $PlayerFlags = The current Player flags
# $RequiredFlags = The current Required flags
#-------------------------------------------------------------------
$SwapSide = "*";
$AutoGears = "*";
$Shifter = "*";
$HelpBrake = "*";
$AxisClutch = "*";
$AutoClutch = "*";
$Mouse = "*";
$KbNoHelp = "*";
$KbStabilised = "*";
$CustomView = "*";
Event OnNotMatchFlags()
privMsg( "Flags not match required flags" );
privMsg("Yours flags -> " . $PlayerFlags );
privMsg("Required flags -> " . $RequiredFlags );
privMsg("Spectated" );
cmdLFS("/spec " . $Username );
EndEvent

Tim NL
S2 licensed
Quote from Yisc[NL] :The latest version of Lapper (5.715) combined with my latest version of the Pitboard (1.40) can now be tested on the following server:

Absolute-beginners.nl[test]

Mode: S2
Track: AS2
Cars: XFR+XRR+FZR
Laps: 10
Mandatory pitstops: 1
Pitwindow: Lap 3 up and including Lap 7

Have a go at this server and tell me about problems you've found or things that can be done different/better. Happy testing everyone.

It's looking very good Yisc
What are the new features? Is there a var that count the nummer of lap's from the car at the lead?
Tim NL
S2 licensed
Quote from Bass-Driver :Here's my lfs lapper.lpr

It should be working (can't test it now on live server , im still working now) .
Only in the drift option part you can remove the /* and */ to show if someone makes a new Drift PB.

Every part in the config file between /* and */ will not work

Type !drf to show the Drift score

example:

[COLOR=red]/*[/COLOR]
Event DriftPBAction()
cmdLFS( "/rcm " . $Nickname . "^3 made new PB: ^1" . $DriftScore . " ^7pts!" );
cmdLFS( "/rcm_all" );
EndEvent
Event DriftPBAction()
cmdLFS( "/msg " . $Nickname . "^3 made new PB: ^1" . $DriftScore . " ^7pts!" );
EndEvent
[COLOR=red]*/[/COLOR]

PS change your pasword of your server and if show any config files on the forum remove your passwords and $PubStatIdk
Tim NL
S2 licensed
Quote from Bass-Driver :hi
i have a problem.
i use lfs lapper version 5.714.

my driftpoints doesnt work ingame, but if i go to the driftPB.txt than can i see my last driftscore but i dont see that ingame.

what's the problem.

Hi,

Show your lapper config so we can look at it.
Tim NL
S2 licensed
Quote from gaz_az :OK - I think I understand !

So basically I create a txt file called QualUsers.txt , and place it in the bin folder !?

Do I have to add names manually or does LFSLapper automatically update the file itself ??

Hi,

You can use (allmost) any name for the file and place it in the Bin folder or in any folder on your server.

example:
$QualUsers = "&C:\Program Files\LFS\CommonFiles\QualUsers.txt";

You have to add the names manualy to the file .

If you setup a league or a event you can add the league racers in the file .
Tim NL
S2 licensed
Quote from gaz_az :I wanted to know how to configure this section properly ........ Particulary how do I generate, and where do i place a .flt file ??



$RefreshQualUsers = true;
#$QualUsers = "&./your_file.flt";
$QualUsers = "@DefGroup:5:5:2,GaiLuron,MataGyula,nesrulz,gwendoline,_ALUCARD-_,lagamel,lister88,c-quad,shimanofr,bruno7529,boby5,kevinb,edgar,berlioz,la tortue,neron59,eur-can,stff,2psbob,oliv76000";


Hi,
You can use this part to show a other !top list only for the people who add to the qualusers. (required for function !nearqual !topqual and !statsqual)
$QualUsers = "Gai-Luron,MataGyula,"

or place all of the racers in a file
$QualUsers = "&./QualUsers.txt";


Gai-Luron
MataGyula

Quote :
# RefreshQualUsers : allow Lapper to refresh QualUsers on each outgoing pits, Usefull if QualUsers is a file and this is changed frequently by an external program
# QualUser : is a list of racers that participed in the qualification, required for function !nearqual !topqual and !statsqual
# if you prefix with & , You can indicate a file name that contains a list of racers, one racer per line (example : QualUsers = ./userfile.txt
# if you prefix with @, You can list usernames separated with ',' (example : QualUsers = @Gai-Luron,gwendoline,_-ALUCARD-_,lagamel
# You can specify which car is used by a user adding car after username separated by ':' (example : Gai-Luron:XFR,lagamel:UFR)
# You can specify the scheme of group of this qualification using a special username called DefGroup
# Defgroup Take 3 argument separated with ':'
# 1 - Is the number Max of Group for this qualification
# 2 - Is the number max of user per group
# 3 - Is the minimum of user in the last group, recalc previous group as possible if number is low
# If you ommit scheme of groups, the group of qualification do not appear

$QualUsers = "@DefGroup:5:5:2,Gai-Luron,MataGyula,"
for max 5 groups with 5 racer's and last group is min 2 racer's
or if you use a file


@DefGroup:5:5:2
Gai-Luron
MataGyula

Tim NL
S2 licensed
Quote from Sil3nc3r- :EDIT: Ok, the lapper is running but i get this when i have configured the pitboard: look at the upper left.
Sil

hi,

It's your logo on top.
Black letter's on a black background.
You can change the color of the logo button (16 for light button) or change the color of the text.
And maybe is the Width of the button to small. Its 4 now



closePrivButton("config_bg&config_title&config_title_2&position_1a&position_1b&position_1c&position_1d&height_1a&height_1b&height_1c&split_1a&split_1b&split_1c&split_1d&new&config_close_a");
openGlobalButton( "logo",20,0,20,[COLOR=red]4[/COLOR],4,-1,[COLOR=red]0[/COLOR],"^1Sim^[COLOR=red]0[/COLOR]Racing.lt Race" );
EndSub

Tim NL
S2 licensed
Quote from oldnavy :But still no text.

Hi,
Do you mean something like this?
Tim NL
S2 licensed
Quote from oldnavy :now i wont get pit board configure and text dont apear. Any ideas?

Did you removed your old Sub OnConnectClose() and other part's that are changed and replaced with the new one's?
Tim NL
S2 licensed
Hi,
Try something like this.
There was 2 times a Sub OnConnectClose() and i changed your first line closePrivButton("welc&pos&clos&ref");


Sub OnConnectClose()
closePrivButton("welc&pos&clos&ref");
openPrivButton( "config_bg",50,50,100,56,5,-1,32,"" );
openPrivButton( "config_title",51,51,98,5,5,-1,0,"^3Configure pitboard^8" );
openPrivButton( "config_title_2",51,56,98,5,5,-1,0,"^3V1.3^8" );
openPrivButton( "position_1a",51,61,15,5,5,-1,64,"Position:" );
openPrivButton( "position_1b",67,61,10,5,5,-1,16,"^2Left^8",Pitboard_left );
openPrivButton( "position_1c",78,61,10,5,5,-1,16,"Right",Pitboard_right );
openPrivButton( "position_1d",89,61,10,5,5,-1,16,"Off",Pitboard_off );
openPrivButton( "height_1a",51,67,15,5,5,-1,64,"Height:" );
openPrivButton( "height_1b",67,67,10,5,5,-1,16,"^2High^8",Pitboard_high );
openPrivButton( "height_1c",78,67,10,5,5,-1,16,"Low",Pitboard_low );
openPrivButton( "split_1a",51,73,15,5,5,-1,64,"Splits:" );
openPrivButton( "split_1b",67,73,10,5,5,-1,16,"2",Pitboard_spl2 );
openPrivButton( "split_1c",78,73,10,5,5,-1,16,"^23^8",Pitboard_spl3 );
openPrivButton( "split_1d",89,73,10,5,5,-1,16,"4",Pitboard_spl4 );
openPrivButton( "new",51,83,98,5,5,-1,64,"^3V1.3: Pitboard can now be set to the rightside of the screen" );
openPrivButton( "config_close_a",94,100,10,5,5,-1,16,"CLOSE",Config_close_b );
EndSub

Sub Config_close_b()
closePrivButton("config_bg&config_title&config_title_2&position_1a&position_1b&position_1c&position_1d&height_1a&height_1b&height_1c&split_1a&split_1b&split_1c&split_1d&new&config_close_a");
openGlobalButton( "logo",20,0,20,4,4,-1,0,"^7Your Text" );
EndSub

Tim NL
S2 licensed
Quote from oldnavy :another question. When i instal PitBoard and change Event OnConnect() a button disapear.What to do?

Thanks fot hellp again

Show your LFSLapper.lpr or some part's from it so i can look at it.

Edit: Or look at the reply from Yisc . he was a bit faster lol
Tim NL
S2 licensed
Quote from DrachenxFire :ok i'm gettin kinda pissed now:
InSim : password does not match your multiplayer admin password

i already changed the password in the .lpr (there isn't any .cfg's aside from the track one but i don't think that's the problem.)

it IS the admin pass.

what's goin on and how do i fix it?

Hi,
The admin password in the dedi and in LFSlapper must be the same.
You can use also numbers in it (works by me).

ps. the portnumbers must also the same


In your Dedi setup.cfg
// optional: admin password
/admin=your password

// optional: InSim port
/insim=29995



And in LFSLapper.lpr
#################
#General options #
#################
.
$Port = 29995; # Insim UDP port. Open this port after starting LFS Server by typing /insim=29999 in chat or include it in config-file LFS Server
$Password = "your password"; # Put in the admin password used on the LFS Server
Tim NL
S2 licensed
Quote from oldnavy :And what i need to do for example i pres on that buton and then i see !top table

Hi,
just put top (); in sub OnConnectClose()


#################################################
#Connect messages when a player joins the server#
#################################################
.
bla bla bla
.
Sub OnConnectClose()
closePrivButton("welc&pos&clos&ref");
openGlobalButton( "logo",20,0,20,4,4,-1,0,"^7Your Text" );
[COLOR=red]top ();[/COLOR]
EndSub

Sub OnConnectCloseKick()
closePrivButton("welc&pos&clos&ref");
cmdLFS("/kick " . $Username );
EndSub

Tim NL
S2 licensed
Quote from Kniebeejs :hate this kind of people...

his lfsname is [removed]

I hate this kind of people to. He drove a 1.09.03 (FBM@BL1) on one of our NLR servers. He's banned now and can came back when he's grown up
FGED GREDG RDFGDR GSFDG